<template>
  <div class="home">
    a{{$store.state.money.money}}
    <button @click="add(2)">add</button>
    <button @click="reduce">reduce</button>
  </div>
</template>

<script>
// @ is an alias to /src
import { mapActions } from 'vuex'
export default {
  name: 'home',
  methods: mapActions('money', ['add', 'reduce']),
  components: {
  }
}
</script>
